package com.mc.read.pcApi;

import com.alibaba.fastjson.JSON;
import com.mc.read.dao.mapper.BooklabelMapper;
import com.mc.read.dao.mapper.UserreadcollectionMapper;
import com.mc.read.dao.mapper.UserreadhistoryMapper;
import com.mc.read.dao.mapper.sys.SyspermissionMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liuhao
 * @date 2019/6/5 16:27
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ReadApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)

public class readTest {

    @Autowired
    BooklabelMapper booklabelMapper;
    @Autowired
    UserreadhistoryMapper userreadhistoryMapper;
    @Autowired
    UserreadcollectionMapper userreadcollectionMapper;

    @Autowired
    SyspermissionMapper syspermissionMapper;
    @Test
    public void test1(){
        List<Integer> hah=new ArrayList<>();
        hah.add(14);
        hah.add(25);
        hah.add(30);
        hah.add(24);
        hah.add(20);
        hah=syspermissionMapper.selectPerListForList(hah);
        System.out.println(JSON.toJSONString(hah));
    }
}
